<?php     
        require_once("php/config.php");
        require_once("php/postgres.php");
        
        try {
            
            $confs = $GLOBALS["CONFIGS"]["PSQL_DB"];
            $pgcon = new PostgresConnection($confs["HOST"], $confs["PORT"], $confs["USER"], $confs["PASSWORD"], $confs["DATABASE"]); 
            
            setcookie("checkLogin", "", time()-1);
			header("Location: index.php");
            
        } catch (PostgresConnectionException $pce) {
            
        echo "<span style='color:red;'>Desculpa, mas sua requisi&ccedil;&atilde;o n&atilde;o pode ser processada agora. Volte mais tarde.</span>";
        }
                    
?>	